package cn.hua.trip.admin.controller;

import cn.hua.trip.base.query.StrategyDetailQueryObject;
import cn.hua.trip.base.service.IStrategyDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/strategyDetail")
public class StrategyDetailController {
    @Autowired
    private IStrategyDetailService strategyDetailService;

    @RequestMapping("/list")
    public String list(Model model, @ModelAttribute("qo") StrategyDetailQueryObject queryObject){
        model.addAttribute("pageInfo",strategyDetailService.query(queryObject));
        return "/strategyDetail/list";
    }

}
